﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="false"
    CodeFile="KeywordsList.aspx.vb" Inherits="Admin_KeywordsList" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White"
        BorderColor="#0099FF" BorderStyle="Double" BorderWidth="3px" CellPadding="4"
        DataKeyNames="KeyId" DataMember="OptionsItem" GridLines="Horizontal" Width="98%">
        <FooterStyle BackColor="White" ForeColor="#333333" />
        <RowStyle BackColor="White" ForeColor="#333333" />
        <Columns>
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:Label ID="TextBox1" runat="server" Text='<%# Bind("KeyName") %>'></asp:Label>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="txtOptionName" runat="server" Text='<%# Bind("KeyName")%>'></asp:TextBox>
                </EditItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ShowHeader="False" HeaderText='<% ResourceManage.GetString("GridTitleEdit","ru")%>'>
                <EditItemTemplate>
                    <asp:Button ID="LinkButton1" runat="server" CausesValidation="false" CommandName="Update"
                        Text='<%#ResourceManage.GetString("Update", "ru")%>' UseSubmitBehavior="false"></asp:Button>
                    <asp:Button ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Cancel"
                        Text='<%#ResourceManage.GetString("Cancel", "ru")%>'></asp:Button>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Button ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Edit"
                        Text='<%#ResourceManage.GetString("Edit", "ru")%>' UseSubmitBehavior="false"></asp:Button>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ShowHeader="False">
                <ItemTemplate>
                    <asp:Button ID="lnkDelete" runat="server" CausesValidation="False" CommandArgument='<%# Container.DataItemIndex %>'
                        CommandName="Delete" Font-Bold="True" ForeColor="#C00000" Text='<%#ResourceManage.GetString("Delete", "ru")%>'
                        ></asp:Button>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <PagerStyle BackColor="#0099FF" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#0099FF" Font-Bold="True" ForeColor="White" />
        <EditRowStyle BackColor="#FFCC33" />
    </asp:GridView>
</asp:Content>
